package com.tosh.util;

/**
 * User: arsentyev
 * Date: 04.10.12
 */
public final class Utils {
    public static boolean isNOE(String string) {
        return string == null || string.isEmpty();
    }

    public static float tryParseFloat(String fStr) {
        if (isNOE(fStr)) {
            return -1;
        }
        try {
            return Float.parseFloat(fStr);
        } catch (NumberFormatException e) {
            return -1;
        }
    }
}